package com.qfmy.web.app.mapper.novel;

import com.qfmy.model.entity.novel.CommentReplyLikes;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.mapper.novel
 * @date 2025/10/31
 * @description 子评论的点赞
 */
@Mapper
public interface CommentReplyLikesMapper {

    /**
     * 根据子评论ID和用户ID查询点赞记录
     * @param replyId
     * @param userId
     * @return
     */
    CommentReplyLikes getCommentReplyLikesByReplyId(Integer replyId, Long userId);

    /**
     * 更新点赞记录
     * @param replyId
     * @param userId
     */
    void updateCommentReplyLikes(Integer replyId, Long userId);

    /**
     * 添加点赞记录
     * @param replyId
     * @param userId
     */
    void addCommentReplyLikes(Integer replyId, Long userId);

    /**
     * 删除点赞记录
     * @param replyId
     * @param userId
     */
    void updateCommentReplyLikesDel(Integer replyId, Long userId);
}
